// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/index.js'
import '@/assets/css/element-variables.scss'
import './assets/css/index.css'
import './fonts/iconfont.css'
import ECharts from 'vue-echarts'
import { HappyScroll } from 'vue-happy-scroll'
import 'vue-happy-scroll/docs/happy-scroll.css'
import VueDND from 'awe-dnd'// 拖拽
import sysNameObj from './sysNameObj'
import VueClipboard from 'vue-clipboard2'

Vue.component('happy-scroll', HappyScroll)
Vue.component('chart', ECharts)
Vue.use(VueClipboard)
Vue.use(VueDND)
Vue.use(ElementUI)
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  created () {
    if (sysNameObj.systemSwitch === 'ON') {
      document.title = sysNameObj.self.web_tab_name
    } else {
      document.title = sysNameObj.other.web_tab_name
    }
  }
})
